//
//  UIButton+InitButton.m
//  WildDonkey
//
//  Created by 佟小波 on 15/3/29.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "UIButton+InitButton.h"

@implementation UIButton (InitButton)

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title image:(UIImage *)image
{
    self=[super init];
    if (self) {
        self.frame=frame;
        [self setTitle:title forState:UIControlStateNormal];
        [self setImage:image forState:UIControlStateNormal];
    }
    return self;
}


+ (UIButton *)buttonWithFrame:(CGRect)frame title:(NSString *)title image:(UIImage *)image
{
    return [[[self alloc]initWithFrame:frame title:title image:image] autorelease];
}

@end
